列表作业
lst = [3, 5, 1, 6, 7, 34, 9, 2, 6, 8]
target = int(input("请输入一个数: "))
result = []
for i in range(len(lst)):
    for j in range(i+1, len(lst)):
        if lst[i] + lst[j] == target:
            result.append(i)
            result.append(j)
if result:
    print(result)
else:
    print(0)
